package design.pattern.Facade.main;

import design.pattern.Facade.facade.impl.*;

public class FacadeMain {
  public static void main(String[] args) {
    FacadeAbstract facadeAbstract = new FacadeAbstractImpl();
    
    // 从这里通过外观模式 进行组合
    facadeAbstract.register(new DoorImpl());
    facadeAbstract.register(new WindowImpl());
    facadeAbstract.register(new LightImpl());
    
    // 通过 外观模式 触发 handle
    facadeAbstract.on();
    facadeAbstract.off();
  }
}
